import http from "@/utils/request";
// 获取工资列表
export const getSalaryList = (data) => {
    return http.get("/rsgl/salary/list", data);
};
// 获取工资详情
export const getSalaryById = (data) => {
    return http.get(`/rsgl/salary/get/${data}`);
};

// 添加工资
export const addSalary = (data) => {
    return http.post("/rsgl/salary/add", data);
};
// 添加调薪
export const addAdjustment = (data) => {
    return http.get("/rsgl/salary-adjustment/add", data);
};
// 修改工资
export const updateSalary = (data) => {
    return http.put("/rsgl/salary/update", data);
};
// 删除工资
export const deleteSalaryById = (data) => {
    return http.delete(`/rsgl/salary/delete/${data}`);
};